<include file="Public:header" />

<body>

    <div id="preloader">
        <div id="status"><i class="fa fa-spinner fa-spin"></i></div>
    </div>
    <section>

    <div class="leftpanel">

        <div class="logopanel">
            <h1><span>[</span>{:C('WEB_TITLE')}<span>]</span></h1>
        </div>

        <div class="leftpanelinner">

            <div class="visible-xs hidden-sm hidden-md hidden-lg">   
                <div class="media userlogged">
                    <img alt="" src="/static/images/photos/loggeduser.png" class="media-object">
                    <div class="media-body">
                        <h4>{:C('username')}</h4>
                    </div>
                </div>

                <h5 class="sidebartitle actitle">账号设置</h5>
                <ul class="nav nav-pills nav-stacked nav-bracket mb30">
                    <li><a href="/site"><i class="fa fa-refresh"></i> <span>切换网站</span></a></li>
                    <li><a href="/user/signout"><i class="fa fa-sign-out"></i> <span>退出</span></a></li>
                </ul>
            </div>

            <include file="Public:menu" />

        </div>
    </div>

    <div class="mainpanel">

        <div class="headerbar">

            <a class="menutoggle"><i class="fa fa-bars"></i></a>

            <form class="searchform" action="" method="post">
                <input type="text" value="<?php if(C('sitename')): ?>当前网站：{:C('sitename')}<?php endif; ?>" class="form-control" placeholder="您还没有任何网站..." readonly>
            </form>

            <div class="header-right">
                <ul class="headermenu">
                    <li>
                    <div class="btn-group">
                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                            <img src="/static/images/photos/loggeduser.png" alt="{:C('username')}" />
                            {:C('username')}
                            <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu dropdown-menu-usermenu pull-right">
                            <li><a href="/user/update"><i class="glyphicon glyphicon-user"></i> 个人信息</a></li>
                            <li><a href="/user/password"><i class="glyphicon glyphicon-cog"></i> 重置密码</a></li>
                            <li><a href="/site"><i class="fa fa-refresh"></i> <span>切换网站</span></a></li>
                            <li><a href="/help"><i class="glyphicon glyphicon-question-sign"></i> 帮助</a></li>
                            <li><a href="/user/signout"><i class="glyphicon glyphicon-log-out"></i> 退出</a></li>
                        </ul>
                    </div>
                    </li>
                    <li>
                    <button id="chatview" class="btn btn-default tp-icon chat-icon">
                        <i class="glyphicon glyphicon-comment"></i>
                    </button>
                    </li>
                </ul>
            </div>

        </div>

        <div class="pageheader">
            <?php 
                $currentMenu = isset($menulist[$controller_name]) ? $menulist[$controller_name] : array();
                $currentChildMenu = isset($currentMenu['child'][$action_name]) ? $currentMenu['child'][$action_name] : array();
            ?>
            <?php if(!empty($currentMenu) || !empty($level_one_title)): ?>
            <h2>
                <?php if($front_icon): ?>
                <i class="fa {$front_icon}"></i>
                <?php elseif(isset($currentMenu['icon']) && $currentMenu['icon']): ?>
                <i class="fa {$currentMenu['icon']}"></i>
                <?php else: ?>
                <i class="fa fa-file-text-o"></i>
                <?php endif; ?>

                <?php if($level_one_title): ?>
                {$level_one_title}
                <?php elseif(isset($currentMenu['text']) && $currentMenu['text']): ?>
                {$currentMenu['text']}
                <?php else: ?>
                爱上扒拉
                <?php endif; ?>

                <?php if($level_two_title): ?>
                <span>{$level_two_title}</span>
                <?php elseif($currentChildMenu): ?>
                <span>{$currentChildMenu}</span>
                <?php endif; ?>
            </h2>
            <?php endif; ?>
        </div>

        <div class="contentpanel">

            <?php echo $container; ?>

            <notempty name="pager">
            <div class="paginate">{$pager} </div>
            </notempty>

        </div>

    </div><!-- mainpanel -->

    <div class="rightpanel">
        <!-- Nav tabs -->
        <ul class="nav nav-tabs nav-justified">
            <li class="active"><a href="#rp-history" data-toggle="tab"><i class="fa fa-clock-o"></i></a></li>
            <li><a href="#rp-settings" data-toggle="tab"><i class="fa fa-gear"></i></a></li>
        </ul>
        <!-- Tab panes -->
        <div class="tab-content">
            <div class="tab-pane active" id="rp-history">
                <h5 class="sidebartitle">History</h5>
                <ul class="chatuserlist">
                    <li class="online">
                    <div class="media">
                        <a href="#" class="pull-left media-thumb">
                            <img alt="" src="/static/images/photos/user4.png" class="media-object">
                        </a>
                        <div class="media-body">
                            <strong>Eileen Sideways</strong>
                            <small>Hi hello, ctc?... would you mind if I go to your...</small>
                        </div>
                    </div><!-- media -->
                    </li>
                    <li>
                    <div class="media">
                        <a href="#" class="pull-left media-thumb">
                            <img alt="" src="/static/images/photos/user2.png" class="media-object">
                        </a>
                        <div class="media-body">
                            <strong>Zaham Sindilmaca</strong>
                            <small>This is to inform you that your product that we...</small>
                        </div>
                    </div><!-- media -->
                    </li>
                    <li>
                    <div class="media">
                        <a href="#" class="pull-left media-thumb">
                            <img alt="" src="/static/images/photos/user3.png" class="media-object">
                        </a>
                        <div class="media-body">
                            <strong>Nusja Nawancali</strong>
                            <small>Are you willing to have a long term relat...</small>
                        </div>
                    </div>
                    </li>
                </ul>
            </div>
            <div class="tab-pane pane-settings" id="rp-settings">

                <h5 class="sidebartitle mb20">Settings</h5>
                <div class="form-group">
                    <label class="col-xs-8 control-label">Show Offline Users</label>
                    <div class="col-xs-4 control-label">
                        <div class="toggle toggle-success"></div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-8 control-label">Enable History</label>
                    <div class="col-xs-4 control-label">
                        <div class="toggle toggle-success"></div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-8 control-label">Show Full Name</label>
                    <div class="col-xs-4 control-label">
                        <div class="toggle-chat1 toggle-success"></div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-8 control-label">Show Location</label>
                    <div class="col-xs-4 control-label">
                        <div class="toggle toggle-success"></div>
                    </div>
                </div>

            </div>

        </div>
    </div>
    </section>
    <include file="Public:footer" />
